package com.wave.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;


@AllArgsConstructor
@Getter
public enum ErrorCode {

    SUCCESS(200, "成功"),
    ERROR(500, "错误"),
    NOT_FIND_ERROR(301, "数据不存在"),
    PARAMS_ERROR(302, "参数错误"),
    NEED_PARAMS(303, "缺少请求参数"),
    NOT_LOGIN(304, "未登录"),
    AUTH_FAIL(305, "无权限"),
    FAIL(306, "失败"),
    REQ_LOGIN(700, "需要登录");

    private final int code;
    private final String message;
}
